
import { Base } from '../../utils/base.js';

class Home extends Base {
	constructor() {
		super();
	}
	// banner
	getBannerData(callback) {
		var params = {
			url: 'getRecommend',
			sCallback: function (res) {
				callback && callback(res);
			}
		}
		this.request(params);
	}
	// 最新商品
	getProductsData(callback) {
		var param = {
			url: 'getGoods',
			sCallback: function (data) {
				callback && callback(data);
			}
		};
		this.request(param);
	}


}

export { Home };